package travelDream.ejb.DTOs;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;



public class UserDTO {

	@Pattern(regexp="[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}", message="Email non valida!")
	private String email;
	@NotEmpty
	private String password;
	@NotEmpty
	private String nome;
	@NotEmpty
	private String cognome;
	private String indirizzo;

	public UserDTO() {
		super();
	}
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String getCognome() {
		return cognome;
	}
	public void setCognome(String cognome) {
		this.cognome = cognome;
	}
	public String getIndirizzo() {
		return indirizzo;
	}
	public void setIndirizzo(String indirizzo) {
		this.indirizzo = indirizzo;
	}
	
}
